package com.snopy.collection;

import java.util.Collection;
import java.util.Iterator;

/**
 * @author snopy
 * @version 1.0.0
 * @classname CustomList
 * @description
 * @email 77912204@qq.com
 * @date 2022/07/25 17:26
 */
public class CustomList<T> implements Collection<T> {
    //获取集合元素的个数
    @Override
    public int size() {
        return 0;
    }

    @Override
    public boolean isEmpty() {
        return false;
    }
    //集合是否包含某元素
    @Override
    public boolean contains(Object o) {
        return false;
    }
    //遍历集合元素
    @Override
    public Iterator<T> iterator() {
        return null;
    }
    //
    @Override
    public Object[] toArray() {
        return new Object[0];
    }

    @Override
    public <T1> T1[] toArray(T1[] a) {
        return null;
    }

    @Override
    public boolean add(T t) {
        return false;
    }

    @Override
    public boolean remove(Object o) {
        return false;
    }

    @Override
    public boolean containsAll(Collection<?> c) {
        return false;
    }

    @Override
    public boolean addAll(Collection<? extends T> c) {
        return false;
    }

    @Override
    public boolean removeAll(Collection<?> c) {
        return false;
    }

    @Override
    public boolean retainAll(Collection<?> c) {
        return false;
    }

    @Override
    public void clear() {

    }
}
